#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void swap(int* a, int* b)
{
    int tmp = *a;
    *a = *b;
    *b = tmp;
}
void moveZeroes(int* nums, int numsSize) {
    int dest = -1, cur = 0;
    while (cur < numsSize)
    {
        if (nums[cur] != 0)
        {
            ++dest;
            swap(&nums[dest], &nums[cur]);
        }
        cur++;
    }
}